<template>
    	<page-meta :root-font-size="fontSizeStore.currentFontSizeRpx"></page-meta>

  <view class="page-container">

    <view class="set-view">
<view class="grid-menu-container">
			<view class="layout1">
<!-- 顶部标题 -->
			<view class="grid-container">
				
			    <view 
				v-if="props.healthData.length>0"
			      class="grid-row" 
			      v-for="(item, index) in props.healthData" 
			      :key="index"
			    >
			      <!-- 使用 iconfont -->
			      <view class="icon-view">
			        <text class="iconfont" :class="item.icon"></text>
			      </view>
			
			      <view class="text-view">
			        <view class="row1">
			          <text>{{ item.title }}</text>
			        </view>
			        <view class="row2">
			          <text class=" text10">{{ item.value }}</text>
			          <text class=" text10">{{ item.unit }}</text>
			        </view>
			      </view>
			    </view>
			  </view>
			  <view class="view3">
          <view class="child-view">
            		<view class="left">
				<text class=" text_desc text10">测量时间：</text>
        <text class="text_desc text10">2025-12-25 12:03</text>
			</view>
			
          </view>
	
			
			  </view>
      </view>
		</view>
		<!-- bg1end -->
    </view>
		

  </view>

</template>

<script setup>
// 静态组件，无额外逻辑

import {oldman_serviceRecordApi} from "@/api/oldman"
import orderItems from "@/components/orderItems/index.vue"
	
import {
		ref,
		onMounted,
		computed,
		nextTick
		} from 'vue';
	import {
		useRouter
	} from 'uni-mini-router'
	
	import {
		useFontSizeStore
	} from '@/stores/fontSizeStore';
	import {
		useTabStore
	} from '@/stores/tabs'
	import {
		ROLE_TABS
	} from "@/config/roles"
	import TabComponent from '@/components/tab-bar/index.vue'
	const fontSizeStore = useFontSizeStore();
	const tabStore = useTabStore()
	const router = useRouter();
	

</script>

<style lang="less" scoped>
	@import '@/static/styles/colors.less';
	@import '@/static/styles/volunteer/home/index.less';

  .grid-menu-container{
    padding: 30rpx;
    
  }


.layout1 {
    border-radius: 9px;
    border: 1rpx solid #efefef;
  // background-color: #ffffff;
  // padding: 16px;
  border-radius: 16px;
  background-color: #fff;
  // margin-bottom: 18px;
  // box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  .header{
    padding: 30rpx;
    .title{
      font-weight: 500;
    }
  }
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
    

  .grid-row {

 
    display: flex;
    align-items: center;
    color: @color-text-dark;
    background-size: cover;
    background-position: center;
    transition: transform 0.2s ease;
    padding: 30rpx;
    

    &:hover {
      transform: translateY(-2px);
    }

    .icon-view {
      margin-right: 12px;
      background: rgba(255, 255, 255, 0.2);
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;

      .iconfont {
        color: @color-text-dark;
        font-size: 20px;
      }
    }

    .text-view {
      flex: 1;

      .row1 {
        text {
          font-size: 15px;
        }
      }

      .row2 {
        display: flex;
        align-items: baseline;
        margin-top: 4px;

        .text1 {
          font-size: 20px;
        }

        .text2 {
          font-size: 12px;
          opacity: 0.9;
          margin-left: 4px;
        }
      }
    }
  }
}


.view3{

  padding:0 30rpx;
  
 .child-view{
    display: flex;
      padding:30rpx 0rpx;
  width: 100%;
      justify-content: center;
    align-items: center;
   border-top: 1rpx solid #e6e6e6;
   .left{
    flex: 1;
    display: flex;
    flex-direction: column;
    .text_desc{
      line-height: 50rpx;
    }
   
  }
  .right{
    flex: 0 0 120rpx;
  }
 }
}

// .work-order-page{
//   border: 1rpx solid #efefef;
// }

</style>